<?php

namespace app\index\model;

use think\Model;

/*
 * 文章分类
 */
class Artcate extends Model
{
    /*
     * 文章
     */
    public function article() {
        return $this->hasMany('Article', 'artcate_id', 'id')
            ->field('id, artcate_id, title, img');
    }

}